QT += widgets serialport network core
requires(qtConfig(combobox))

TARGET = terminal
TEMPLATE = app

DESTDIR = .\bin

SOURCES += \
    ClientFactory.cpp \
    IEC104APCI.cpp \
    Tester.cpp \
    src/NRJB/AsduParser.cpp \
    src/NRJB/NRJB103Client.cpp \
    src/NRJB/NRJB103_Parser.cpp \
    src/NRJB/NRJB103Constructer.cpp \
    src/NRJB/NRJBConnection.cpp \
    src/NZ/NZ103Client.cpp \
    src/NZ/NZConnection.cpp \
    src/NZ/NZparser.cpp \
    src/PacketConstructer.cpp \
    src/Panelbill.cpp \
    src/SF/SF103Client.cpp \
    src/SF/SF103Constructer.cpp \
    src/SF/SF103_Parser.cpp \
    src/SF/SFAsduParser.cpp \
    src/SF/SFConnection.cpp \
#    src/SZNR/PanelSZNR_TCPClient.cpp \
    src/SZNR/SZNR103Constructer.cpp \
    src/SZNR/SZNR103Parser.cpp \
    src/SZNR/SZNRAsduParser.cpp \
    src/SZNR/SZNRConnection.cpp \
    src/SZNR/SZNR103Client.cpp \
#    src/XJ/PanelXJ_TCPClient.cpp \
#    src/XJ/XJ103Constructer.cpp \
#    src/XJ/XJ103_Parser.cpp \
#    src/XJ/XJAsduParser.cpp \
#    src/XJ/XJConnection.cpp \
    src/SZNR/SZNRReadBillTemplateFile.cpp \
    src/console.cpp \
    src/main.cpp \
    src/mainwindow.cpp \
    src/settingsdialog.cpp \
    src/utils.cpp
    src/NRJB/NRJB_UDP.cpp
    src/XJ/

HEADERS += \
    ClientFactory.h \
    CommBase.h \
    IEC104APCI.h \
    Tester.h \
    include/NRJB/AsduParser.h \
    include/NRJB/NRJB103Client.h \
    include/NRJB/NRJB103Constructer.h \
    include/NRJB/NRJB103_Parser.h \
    include/NRJB/NRJB103_Type.h \
    include/NRJB/NRJBConnection.h \
    include/NZ/IEC103Type.h \
    include/NZ/NZ103Client.h \
    include/NZ/NZConnection.h \
    include/NZ/NZparser.h \
    include/PacketConstructer.h \
    include/PanelBill.h \
    include/SF/SF103Client.h \
    include/SF/SF103Constructer.h \
    include/SF/SF103_Parser.h \
    include/SF/SF103_Type.h \
    include/SF/SFAsduParser.h \
    include/SF/SFConnection.h \
    include/SZNR/SZNR103Client.h \
    include/SZNR/SZNRAsduParser.h \
    include/SZNR/SZNRConnection.h\
    include/SZNR/SZNR103Constructer.h \
    include/SZNR/SZNR103Parser.h \
    include/SZNR/SZNR103_Type.h \
    include/SZNR/SZNRReadBillTemplateFile.h\
    include/Std103Def.h \
#    include/XJ/PanelXJ_TCPClient.h \
#    include/XJ/XJ103Constructer.h \
#    include/XJ/XJ103_Parser.h \
#    include/XJ/XJ103_Type.h \
#    include/XJ/XJAsduParser.h \
#    include/XJ/XJConnection.h \
    include/console.h \
    include/dataproc.h \
    include/mainwindow.h \
    include/packet.h \
    include/settingsdialog.h \
    include/utils.h \

RESOURCES += \
    terminal.qrc
INCLUDEPATH += include


target.path = E:/code/iec103_-parser/bin
INSTALLS += target

FORMS += \
    ui/NZ103Client.ui \
    ui/PanelBill.ui \
    ui/PanelNRJB_TCPClient.ui \
    ui/PanelSF_TCPClient.ui \
#    ui/PanelSZNR_TCPClient.ui \
    ui/mainwindow.ui \
    ui/settingsdialog.ui \

